<template>
  <div class="max-w-3xl mx-auto">
    <RouterView />
  </div>
  <!--  <p class="text-red-500">hello world</p>-->
  <!--  <van-button type="primary" @click="toggleLanguage">-->
  <!--    {{ languageStore.currentLanguage === 'zh' ? '切换至英文' : '切换至中文' }}-->
  <!--  </van-button>-->
</template>

<script setup>
import { computed, provide } from 'vue'
import { RouterView } from 'vue-router'

import { useLanguageStore } from '@/stores/language'

// ---------------------语言环境-------------------
const languageStore = useLanguageStore()
const isEn = computed(() => languageStore.currentLanguage === 'en')
provide('isEn', isEn)
</script>

<style scoped>

</style>
